<%-- 
    Document   : detail_conten
    Created on : 13-Jul-2013, 10:14:33
    Author     : MrMAD
--%>

<%@page import="mybean.Book"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Book Store</title>
        <link rel="stylesheet" href="MyCss/mycss.css">
    </head>
    <body>
        <script src="js/buy.js"></script>                
        <jsp:useBean id="book" class="mybean.DBProcess"/>
        <%
            Book selectedbook = book.getBook(request.getParameter("bookID"));
        %>
        <div id="templatemo_content_right">
            <div class="templatemo_product_box">
                <h1><%= selectedbook.getBookTitle()%> <span>(by <%= selectedbook.getAuthor()%>)</span></h1>
                <img alt="image" src="<%= selectedbook.getCover()%>"/>
                <div class="product_info">                    
                    <p><%= selectedbook.getSummary()%></p>
                    <div id="buttonNprice">                                
                        <h3>Publisher: <%= selectedbook.getPublisher()%></h3>
                        <h3>Price: <%= selectedbook.getPrice()%></h3>
                        <div  id="quantity">
                            <strong>Quantity:</strong>
                            <select name="quantity" id="quan">
                                <%
                                    for (int i = 1; i < 99; i++) {
                                %>
                                <option value="<%=i%>"><%=i%></option>
                                <%
                                    }
                                %>
                            </select>
                        </div>
                        <div id="button" onclick="buyMany()">
                            <div id="bookID" style="display: none"><%= selectedbook.getBookID()%></div>                                    
                            <div class="buy_now_button"><a>Add to cart</a></div>                                    
                        </div>                                
                    </div>
                </div>
                <h3 id="detail">Content Detail:</h3>
                <p style="padding-left: 20px;"><%= selectedbook.getDetails()%></p>
            </div>                               
            <div class="cleaner_with_height">&nbsp;</div>  
        </div><!-- end of content right -->
    </body>
</html>
